Platform Explorer / Nuxeo Platform 2021.47

Contribution org.nuxeo.ecm.platform.forms.layout.dev--layouts

This contribution is part of XML component org.nuxeo.ecm.platform.forms.layout.dev inside nuxeo-platform-forms-layout-client-2021.47.4.jar /OSGI-INF/layouts-dev-contrib.xml

Extension Point

Extension point layouts of component WebLayoutManager.

Registration Order

7
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <layout name="widget_dev_layout" type="devLayout">
          <rows>
            <row>
              <widget>type</widget>
            </row>
            <row>
              <widget>typeCategory</widget>
            </row>
            <row>
              <widget>mode</widget>
            </row>
            <row>
              <widget>dynamic</widget>
            </row>
            <row>
              <widget>properties</widget>
            </row>
            <row>
              <widget>controls</widget>
            </row>
          </rows>
          <widget name="type" type="text">
            <labels>
              <label mode="any">Type</label>
            </labels>
            <fields>
              <field>type</field>
            </fields>
          </widget>
          <widget name="typeCategory" type="text">
            <labels>
              <label mode="any">Type Category</label>
            </labels>
            <fields>
              <field>typeCategory</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.typeCategory or
                layoutValue.typeCategory == 'jsf', 'hidden', mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="mode" type="text">
            <labels>
              <label mode="any">Mode</label>
            </labels>
            <fields>
              <field>mode</field>
            </fields>
          </widget>
          <widget name="dynamic" type="text">
            <labels>
              <label mode="any">Dynamic</label>
            </labels>
            <fields>
              <field>dynamic</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(layoutValue.dynamic, mode, 'hidden')}
              </mode>
            </widgetModes>
          </widget>
          <widget name="properties" type="template">
            <labels>
              <label mode="any">Properties</label>
            </labels>
            <fields>
              <field>properties</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.properties, 'hidden',
                mode)}
              </mode>
            </widgetModes>
            <properties mode="any">
              <property name="template">
                /widgets/dev/properties_widget_template.xhtml
              </property>
            </properties>
          </widget>
          <widget name="controls" type="template">
            <labels>
              <label mode="any">Controls</label>
            </labels>
            <fields>
              <field>controls</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.controls, 'hidden',
                mode)}
              </mode>
            </widgetModes>
            <properties mode="any">
              <property name="template">
                /widgets/dev/properties_widget_template.xhtml
              </property>
            </properties>
          </widget>
        </layout>
  • <layout name="layout_dev_layout" type="devLayout">
          <rows>
            <row>
              <widget>type</widget>
            </row>
            <row>
              <widget>mode</widget>
            </row>
            <row>
              <widget>dynamic</widget>
            </row>
            <row>
              <widget>properties</widget>
            </row>
          </rows>
          <widget name="type" type="text">
            <labels>
              <label mode="any">Type</label>
            </labels>
            <fields>
              <field>type</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.type, 'hidden', mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="mode" type="text">
            <labels>
              <label mode="any">Mode</label>
            </labels>
            <fields>
              <field>mode</field>
            </fields>
          </widget>
          <widget name="dynamic" type="text">
            <labels>
              <label mode="any">Dynamic</label>
            </labels>
            <fields>
              <field>dynamic</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(layoutValue.dynamic, mode, 'hidden')}
              </mode>
            </widgetModes>
          </widget>
          <widget name="properties" type="template">
            <labels>
              <label mode="any">Properties</label>
            </labels>
            <fields>
              <field>properties</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.properties, 'hidden',
                mode)}
              </mode>
            </widgetModes>
            <properties mode="any">
              <property name="template">
                /widgets/dev/properties_widget_template.xhtml
              </property>
            </properties>
          </widget>
        </layout>

XML Source

<extension point="layouts" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <layout name="widget_dev_layout" type="devLayout">
      <rows>
        <row>
          <widget>type</widget>
        </row>
        <row>
          <widget>typeCategory</widget>
        </row>
        <row>
          <widget>mode</widget>
        </row>
        <row>
          <widget>dynamic</widget>
        </row>
        <row>
          <widget>properties</widget>
        </row>
        <row>
          <widget>controls</widget>
        </row>
      </rows>
      <widget name="type" type="text">
        <labels>
          <label mode="any">Type</label>
        </labels>
        <fields>
          <field>type</field>
        </fields>
      </widget>
      <widget name="typeCategory" type="text">
        <labels>
          <label mode="any">Type Category</label>
        </labels>
        <fields>
          <field>typeCategory</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.typeCategory or
            layoutValue.typeCategory == 'jsf', 'hidden', mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="mode" type="text">
        <labels>
          <label mode="any">Mode</label>
        </labels>
        <fields>
          <field>mode</field>
        </fields>
      </widget>
      <widget name="dynamic" type="text">
        <labels>
          <label mode="any">Dynamic</label>
        </labels>
        <fields>
          <field>dynamic</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(layoutValue.dynamic, mode, 'hidden')}
          </mode>
        </widgetModes>
      </widget>
      <widget name="properties" type="template">
        <labels>
          <label mode="any">Properties</label>
        </labels>
        <fields>
          <field>properties</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.properties, 'hidden',
            mode)}
          </mode>
        </widgetModes>
        <properties mode="any">
          <property name="template">
            /widgets/dev/properties_widget_template.xhtml
          </property>
        </properties>
      </widget>
      <widget name="controls" type="template">
        <labels>
          <label mode="any">Controls</label>
        </labels>
        <fields>
          <field>controls</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.controls, 'hidden',
            mode)}
          </mode>
        </widgetModes>
        <properties mode="any">
          <property name="template">
            /widgets/dev/properties_widget_template.xhtml
          </property>
        </properties>
      </widget>
    </layout>

    <layout name="layout_dev_layout" type="devLayout">
      <rows>
        <row>
          <widget>type</widget>
        </row>
        <row>
          <widget>mode</widget>
        </row>
        <row>
          <widget>dynamic</widget>
        </row>
        <row>
          <widget>properties</widget>
        </row>
      </rows>
      <widget name="type" type="text">
        <labels>
          <label mode="any">Type</label>
        </labels>
        <fields>
          <field>type</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.type, 'hidden', mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="mode" type="text">
        <labels>
          <label mode="any">Mode</label>
        </labels>
        <fields>
          <field>mode</field>
        </fields>
      </widget>
      <widget name="dynamic" type="text">
        <labels>
          <label mode="any">Dynamic</label>
        </labels>
        <fields>
          <field>dynamic</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(layoutValue.dynamic, mode, 'hidden')}
          </mode>
        </widgetModes>
      </widget>
      <widget name="properties" type="template">
        <labels>
          <label mode="any">Properties</label>
        </labels>
        <fields>
          <field>properties</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.properties, 'hidden',
            mode)}
          </mode>
        </widgetModes>
        <properties mode="any">
          <property name="template">
            /widgets/dev/properties_widget_template.xhtml
          </property>
        </properties>
      </widget>
    </layout>

  </extension>